home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
016a
/
fdsk11.zip
/
FREEDISK.DOC
next >
Wrap
Text File
|
1991-11-10
|
9KB
|
245 lines
FREEDISK.EXE 1.1
Copyright 1991 by Chuck Steenburgh
Ever started a program only to find out that your disk
did not have enough room to store any data? Want to have
your batch files tell you when it is time to swap disks or
clean up your hard drive? FREEDISK to the rescue! FREEDISK
can be used from the command line as a quick way to deter-
mine your remaining disk space (much faster than using the
DOS commands like dir or chkdsk). FREEDISK really shines,
however, in batch files, where it can help your batch file
programs make decisions based on remaining disk space.
Usage: FREEDISK [drive] [space] [/SK | /SB] [/H] |
drive a single letter representing
the disk drive you want to
check. You don't need a colon,
and the default is the current
disk drive. [optional]
space the number of kilobytes of free
disk space you feel is necessary
in order to continue. A kilo-
byte is 1,024 bytes (binary pur-
ist that I am!). [optional]
/SK screen report of free space in kilo- |
bytes rather than megabytes. Error- |
level report is still in 10K incre- |
ments. |
/SB screen report of free space in |
bytes rather than megabytes. Error- |
level report is still in 10K incre- |
ments. |
/H displays brief syntax help |
Examples:
FREEDISK displays the total and available
space on the current dirve. Also
returns available space as error-
level (see below).
FREEDISK b displays the total and available
space on drive B.
FREEDISK 10000 displays the total and available
space on the current drive. If
the available space is less than
10,000 kilobytes, FREEDISK will
Page 1
sound an alarm and set the error-
level.
FREEDISK /SK a 30 displays the total and available |
space on drive A in kilobytes. If |
the available space is less than 30K, |
FREEDISK will sound an alarm and set |
the errorlevel to "1." |
FREEDISK normally displays available and total space in mega-|
bytes (unless you have specified either the /SK or /SB switch). |
Since a megabyte is 1,024 kilobytes or 1,048,576 bytes, the
numbers shown might look a little different than what the guy
who sold you your disk drive said. That's OK, salesmen tend to
define a "K" as 1,000 so they can make their products look
better. It's all the same, you're not losing any bytes one way
or another. My salesman, for example said my Seagate ST-251
had 42 megabytes; FREEDISK reports it at only 40.6 meg.
FREEDISK will return one of several possible errorlevels: |
0 Normal termination, sufficient disk space available
1 Not enough space available |
254 Help displayed, no report |
255 Error reading available disk space |
When the no needed space is indicated on the command line,
FREEDISK will set the errorlevel equal to the amount of space
available on the drive, in 10K increments. For example, if
you specify "FREEDISK A" on the command line, and drive A has
240K of free space left, FREEDISK will return an errorlevel of
24. If there are more than 2.53 megabytes available, the
errorlevel will be set to 253. This feature is useful when
you want your batch file to selectively delete files on the
target until a certain amount of space remains (for example).
DISCLAIMER
The programs described in this documentation are guaran-
teed to absolutely nothing! They have, however, in my exper-
ience performed essentially as described herein. The author
will not be responsible for any loss or damages caused through
the use of these programs.
All trademarks are property of their respective owners.
The programs and documentation are Copyright 1991 by Chuck
Steenburgh. You are encouraged to distribute these programs
provided the following conditions are met:
- all files listed in the file FILES.TXT must be distrib-
uted together in UNMODIFIED form
- you charge no more than a reasonable fee for copying or
Page 2
subscription, and clearly indicate that payment of such
a fee does NOT grant ownership of the programs.
This program is part of set of utilities known as STEEN-
BURGH'S STUFF (Mildly Useful Utilities). The full set of
utilities includes the following programs:
BATBOX: Simple menu creation/input system
CLK: Displays time on screen
DOSVER: Checks for DOS version currently running
FREEDISK: Checks for available disk space
INPUT: Simple prompt/input system
KLS: Colorful screen-clearing utility
LAUNCHER: File selection/execution system
MUSIC115: Plays transcribed sheet music on the PC
RAND: Random number generator
SKIP: Prints blank lines from batch files
SOUNDER: Wide range of noise making options
WAITFOR: Timed pauses
WHENISIT: Date/time telling utility
WRITE: Colorful output anywhere on screen
XD: Create/switch directories at the same time
Payment of the $10 registration fee allows automatically
registers you for the full set.
You may evaluate these programs for up to 30 days on a free
trial basis. After 30 days, you should register your use of
these programs. The registration fee is $10, payable to the
author at the address given below.
Let's be real: I don't plan to make alot of money this way.
Registration does have its advantages:
- I am improving these programs all the time. Registration
will get you IMMEDIATELY a disk with the latest version,
which includes a version of BATBOX with user-selected
menu colors. When Version 2.0 of these utilities is re-
leased, you will also receive that free of charge.
- While I can't promise to include everyone's suggestions
in program updates, you can bet I'll listen to registered
users before any of you scrounges out there.
- You will me feel all warm and fuzzy and appreciated, and
all that good stuff.
- You will also get an evaluation copy of my text-file for-
matting program (used to produce the margins in this doc-
ument).
Send comments/registrations to:
Chuck Steenburgh
Page 3
304A North Main Street
Lexington, VA 24450
(703)464-5290
CIS 72330,1776 (I haunt the IBMSYS and IBMPRO forums)
Page 4